package com.niiwoo.civet.mobile.vo.response.invest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by dell on 2017/11/22.
 */
@Getter
@Setter
@ToString
@ApiModel("我的投资订单分页列表响应参数")
public class MyInvestOrderPageResponseVO {
    @ApiModelProperty(value = "当前页列表数据", required = true)
    private List<InvestOrderVO> items = new ArrayList<>();

    @Getter
    @Setter
    @ToString
    @ApiModel("投资订单")
    public static class InvestOrderVO {
        @ApiModelProperty("投资订单id")
        private Long investOrderId;
        @ApiModelProperty("标的id")
        private Long projectId;
        @ApiModelProperty("标的类型：1:个人极速借 2:机构极速借 3:你我云贷")
        private Byte projectType;
        @ApiModelProperty("借款用户id")
        private String borrowerUserId;
        @ApiModelProperty("借款用户性别：（0未知，1男，2女）")
        private Byte borrowerGender;
        @ApiModelProperty("借款用户头像")
        private String borrowerHeadImage;
        @ApiModelProperty("借款人昵称")
        private String borrowerNickName;
        @ApiModelProperty("借款人你我分")
        private Integer borrowerNiiwooScore;
        @ApiModelProperty("复借笔数")
        private Integer borrowerLoanTimes;
        @ApiModelProperty("借款地址市")
        private String loanCity;
        @ApiModelProperty("借款地址区")
        private String loanArea;
        @ApiModelProperty("满标时间")
        private Date fullSuccessDate;
        @ApiModelProperty("项目标题")
        private String title;
        @ApiModelProperty("借款年化利率：10%则为0.1")
        private BigDecimal borrowRate;
        @ApiModelProperty("借款年化利率*100：10%则为10")
        private String borrowRateDesc;
        @ApiModelProperty("借款期限：如1，15")
        private Integer deadLine;
        @ApiModelProperty("期数单位(1:月，2:天)")
        private Byte deadLineUnit;
        @ApiModelProperty("借款合同金额")
        private BigDecimal contractAmount;
        @ApiModelProperty("投资订单状态:1投资中，2回款中，3回款逾期，4已关闭，5已结清")
        private Byte orderStatus;
        @ApiModelProperty("当前期数，回款中 || 回款逾期有值")
        private Integer currentPeriod;
        @ApiModelProperty("回款逾期提示")
        private String overdueTip;
        @ApiModelProperty("已投资金额")
        private BigDecimal investedAmount;
        @ApiModelProperty("预期/实际收益（已结清和已关闭显示实际收益，其他状态显示预期收益）")
        private BigDecimal interest;
        @ApiModelProperty("h5投资订单详情地址")
        private String h5InvestDetailUrl;
        @ApiModelProperty("居间合同url")
        private String contractUrl;
        @ApiModelProperty("风险提示书合同url")
        private String riskTipsContractUrl;
        @ApiModelProperty("标的发布时间")
        private Date publishTime;
        @ApiModelProperty("复借笔数")
        private Integer loanTimes;
        @ApiModelProperty("借款人类型(1:个人，2:企业)")
        private Byte borrowerType;
    }
}
